<!DOCTYPE HTML>
<html>
 <head>
  <title>推荐分成管理</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/bui-min.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/page-min.css" rel="stylesheet" type="text/css" /> 
 </head>
 <body>
  
  <div class="container">

    <div class="row header">
      <p>推荐分成管理</p>
       <span class="headBtn"><a  href="me-1-4.html">创建活动</a></span>
    </div>
    <div class="row fileborder">
          <form id="searchForm" class="form-horizontal ">           
            <div class="row span26">
              <div class="control-group span7">
                <label class="control-label">订单号：</label>
                <div class="controls" >
                  <input type="text">
                </div>
              </div>   
              <div class="control-group span7">
                <label class="control-label">下单会员：</label>
                <div class="controls" >
                  <input type="text">
                </div>
              </div> 
              <div class="control-group span8">
                <label class="control-label">推荐人：</label>
                <div class="controls" >
                  <input type="text">
                </div>
              </div> 
              <div class="span3">
                 <span class="myspanBtn">搜索</span>
              </div>
              
            </div>  
                         
          </form>
    </div>

     <div class="search-grid-container">
         <div id="grid"></div>
     </div>
  </div>

  
 <script type="text/javascript" src="../assets/js/jquery-1.8.1.min.js"></script>
  <script type="text/javascript" src="../assets/js/bui-min.js"></script>
  <script type="text/javascript" src="../assets/js/config-min.js"></script>
  <script type="text/javascript" src="../assets/js/myjs.js"></script> 
  <script type="text/javascript">
    BUI.use('common/page');
  </script>

<script type="text/javascript">
  BUI.use('common/search',function (Search) {
    
   
     var editing = new BUI.Grid.Plugins.DialogEditing({
        contentId : 'content', //设置隐藏的Dialog内容
        autoSave : true, //添加数据或者修改数据时，自动保存
        triggerCls : 'btn-edit'
      }),
      columns = [
          {title:'订单号',dataIndex:'market-7-0',width:100},
          {title:'下单会员',dataIndex:'market-7-1',width:100},
          {title:'推荐人',dataIndex:'market-7-2',width:100},
          {title:'订单总额',dataIndex:'market-7-3',width:100},
         
          {title:'订单分成',dataIndex:'market-7-4',width:100},
          {title:'消费积分',dataIndex:'market-7-5',width:100},
          {title:'消费积分分成',dataIndex:'market-7-6',width:100},
         
          {title:'等级积分',dataIndex:'market-7-7',width:100},
          {title:'等级积分分成',dataIndex:'market-7-8',width:100},
          {title:'操作',dataIndex:'',width:200,renderer : function(value,obj){
            var  editStr1 = '<span class="grid-command">[查看]</span>';
              
            return  editStr1;
          }}
        
        ],
      store = Search.createStore('../data/goods03.json',{
        proxy : {
          save : { //也可以是一个字符串，那么增删改，都会往那么路径提交数据，同时附加参数saveType
            addUrl : '../data/add.json',
            updateUrl : '../data/edit.json',
            removeUrl : '../data/del.php'
          }/*,
          method : 'POST'*/
        },
        autoSync : true //保存数据后，自动更新
      }),
      gridCfg = Search.createGridCfg(columns,{
        // tbar : {
        //   items : [
        //     {text : '<i class="icon-plus"></i>新建',btnCls : 'button button-small',handler:addFunction},
        //     {text : '<i class="icon-edit"></i>编辑',btnCls : 'button button-small',handler:function(){alert('编辑');}},
        //     {text : '<i class="icon-remove"></i>删除',btnCls : 'button button-small',handler : delFunction}
        //   ]
        // },
        plugins : [editing,BUI.Grid.Plugins.CheckSelection,BUI.Grid.Plugins.AutoFit] // 插件形式引入多选表格
      });

    var  search = new Search({
        store : store,
        gridCfg : gridCfg
      }),
      grid = search.get('grid');

  });
</script>

</body>
</html>  
